package com.yonyou.pmclouds.workflow.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.workflow.entity.ProcessDataSynVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProcessDataSynMapper extends BaseMapper<ProcessDataSynVO> {

    ProcessDataSynVO selectSynByType(@Param("tenantId") String tenantId, @Param("dataType") String dataType);

    ProcessDataSynVO queryLastSynInfo(@Param("tenantId") String tenantId) throws BusinessException;

    ProcessDataSynVO checkIsBaseDataSyn(@Param("tenantId") String tenantId) throws BusinessException;
}
